<?php
require 'menu_atas.php';
?>
<style>
input.error, textarea.error, select.error {
	background-color:#FFFFCC !important;
	border:1px solid #CC0000 !important;
}
label.error {
	color:#CC0000 !important;
	font-family:Arial, Helvetica, sans-serif !important;
	font-size:11px !important;
	padding-left:5px !important;
}
</style>
<?php
$username=$_SESSION['username'];
$sql="select * from tb_pendaftar where username='".$username."'";
//echo $sql;
$qry=mysql_query($sql);
$hasil=mysql_fetch_array($qry);
?>
  <div id="isi">

<form name="formlogin" id="form_login" action="aksi_input_sertifikat.php" method="post" onsubmit="return confirm('Apakah data yang Anda masukan sudah benar ? ')">
<table id="belang" align="center">
	  <tr>
  	<th>Nama Sertifikat</th>
	<td><input type="text" value="" name="nama" size="50" class="required" />
	<input type="hidden" value="<?php echo $hasil['id_pendaftaran']?>" name="id_pendaftaran" id="id_pendaftaran" />
	</td>
  </tr>
   <tr>
<th>Jenjang</th>
  <td>
<select name="jenjang" id="jenjang" class="required">	

    <?php
      // tampilkan jenjang
	  $arr_jenjang=array('internasional'=>'Internasional','nasional'=>'Nasional','provinsi'=>'Provinsi','kabupaten'=>'Kabupaten');
	  foreach($arr_jenjang as $key_j=>$val_j){
		echo "<option value='".$key_j."'>".$val_j."</option> \n";
	  }
   
     ?>
      </select>
  </td>
  </tr> 
   <tr>
<th>Daerah</th>
  <td>
<select name="daerah" id="daerah" >	

    <?php
      // tampilkan jenjang
	  $arr_daerah=array('dalam_kab'=>'Dalam Kabupaten','luar_kab'=>'Luar Kabupaten','luar_prov'=>'Luar Provinsi');
	  foreach($arr_daerah as $key_j=>$val_j){
		echo "<option value='".$key_j."'>".$val_j."</option> \n";
	  }
   
     ?>
      </select>
  </td>
  </tr>   
	   <tr>
<th>Juara</th>
  <td>
<select name="juara" id="juara" class="required">	

    <?php
      // tampilkan jenjang
	  $arr_juara=array('1'=>'1','2'=>'2','3'=>'3');
	  foreach($arr_juara as $key_j=>$val_j){
		echo "<option value='".$key_j."'>".$val_j."</option> \n";
	  }
   
     ?>
      </select>
  </td>
  </tr> 

  
  
	<tr><td colspan="2" align="center"><input type="submit" value="Input" /></td></tr>




</table>

</form>

 </div>
<?php
require 'footer.php';
?>